<template>
    <div class="center">
<table width="942" border="0" cellpadding="0" cellspacing="0" style="width:706.50pt;border-collapse:collapse;table-layout:fixed;">
   <colgroup><col width="131" style="mso-width-source:userset;mso-width-alt:4192;">
   <col width="93" style="mso-width-source:userset;mso-width-alt:2976;">
   <col width="88" style="mso-width-source:userset;mso-width-alt:2816;">
   <col width="79" style="mso-width-source:userset;mso-width-alt:2528;">
   <col width="91" style="mso-width-source:userset;mso-width-alt:2912;">
   <col width="127" style="mso-width-source:userset;mso-width-alt:4064;">
   <col width="72" style="width:54.00pt;">
   <col width="117" style="mso-width-source:userset;mso-width-alt:3744;">
   <col width="72" span="2" style="width:54.00pt;">
   </colgroup><tbody><tr height="19" style="height:14.25pt;">
    <td class="xl65" height="38" width="798" colspan="8" rowspan="2" style="height:28.50pt;width:598.50pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;text-align:center;" x:str="">二级动火工作票</td>
    <td class="xl95" width="144" colspan="2" rowspan="2" style="width:108.00pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
   </tr><tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">No：</td>
    <td class="xl72" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;">{{this.bb.rwdId}}</td>
    <td class="xl71" x:str="">编号：</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;">{{this.bb.ticketId}}</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">动火部门</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;">{{this.bb.orgName_dictText}}</td>
    <td class="xl71" x:str="">班组</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.className}}</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-input v-model="className"></a-input>
    </td>
    <td class="xl71" x:str="">动火工作负责人</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.workOndutyPerson0}}</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-input v-model="workOndutyPerson0"></a-input>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl76" height="38" rowspan="2" style="height:28.50pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">动火地点及<br>设备名称</td>
    <td class="xl75" colspan="9" rowspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.fireEquipPlace}}</td>
    <td class="xl75" colspan="9" rowspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-textarea
            v-model="fireEquipPlace"
            :auto-size="{ minRows: 3, maxRows: 5 }"
            />
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
   </tr><tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">动火执行人</td>
    <td class="xl75" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.fireExecutePerson1}}</td>
    <td class="xl75" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-input v-model="fireExecutePerson1"></a-input>
    </td>
    <td class="xl71" x:str="">操作证编号</td>
    <td class="xl75" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb. operateBookId1}}</td>
    <td class="xl75" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-input v-model=" operateBookId1"></a-input>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">动火执行人</td>
    <td class="xl77" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.fireExecutePerson2}}</td>
    <td class="xl77" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-input v-model="fireExecutePerson2"></a-input>
    </td>
    <td class="xl71" x:str="">操作证编号</td>
    <td class="xl77" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.operateBookId2}}</td>
    <td class="xl77" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-input v-model="operateBookId2"></a-input>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl76" height="38" rowspan="2" style="height:28.50pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">动火工作<br>内容</td>
    <td class="xl75" colspan="9" rowspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;">{{this.bb.workDetail}}</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
   </tr><tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">动火方式</td>
    <td class="xl75" colspan="9" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.workWay}}</td>
    <td class="xl75" colspan="9" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-textarea
      v-model="workWay"
      :auto-size="{ minRows: 3, maxRows: 5 }"
    />
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl75" height="19" colspan="5" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">动火部门采取的安全措施</td>
    <td class="xl75" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">运行应采取的安全措施</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl80" height="152" colspan="5" rowspan="8" style="height:114.00pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.safeActionCheck}}</td>
    <td class="xl80" height="152" colspan="5" rowspan="8" style="height:114.00pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
             <a-textarea
            v-model="safeActionCheck"
            :auto-size="{ minRows: 3, maxRows: 5 }"
            />
    </td>
    <td class="xl80" colspan="5" rowspan="8" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.safeActionRun}}</td>
    <td class="xl80" colspan="5" rowspan="8" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-textarea
            v-model="safeActionRun"
            :auto-size="{ minRows: 3, maxRows: 5 }"
            />
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
   </tr><tr height="19" style="height:14.25pt;">
   </tr><tr height="19" style="height:14.25pt;">
   </tr><tr height="19" style="height:14.25pt;">
   </tr><tr height="19" style="height:14.25pt;">
   </tr><tr height="19" style="height:14.25pt;">
   </tr><tr height="19" style="height:14.25pt;">
   </tr><tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">申请动火时间</td>
    <td class="xl75" x:str="">自</td>
    <td class="xl75" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.applyFireDate1}}</td>
    <td class="xl75" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="applyFireDate1"></j-date>
    </td>
    <td class="xl75" x:str="">至</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.applyFireDate2}}</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="applyFireDate2"></j-date>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl75" height="19" colspan="2" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">动火工作票签发人：</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!sign">{{this.bb.ticketAsignPerson}}</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="sign">
        <a-input v-model="ticketAsignPerson"></a-input>
    </td>
    <td class="xl89" x:str="">时间</td>
    <td class="xl77" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!sign">{{this.bb.ticketAsignDate}}</td>
    <td class="xl77" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="sign">
         <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="ticketAsignDate"></j-date>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">审核人签名</td>
    <td class="xl77" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">动火风电场安全员或技术专工：</td>
    <td class="xl77" colspan="6" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!receive">{{this.bb.safeTechPerson}}</td>
    <td class="xl77" colspan="6" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="receive">
        <a-input v-model="safeTechPerson"></a-input>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">批准人签名</td>
    <td class="xl77" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">动火风电场负责人：</td>
    <td class="xl77" colspan="6" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!receive">{{this.bb.fireWindPerson}}</td>
    <td class="xl77" colspan="6" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="receive">
        <a-input v-model="fireWindPerson"></a-input>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">批准动火时间</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!receive">{{this.bb.approveFireDate1}}</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="receive">
         <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="approveFireDate1"></j-date>
    </td>
    <td class="xl71" x:str="">开始至</td>
    <td class="xl75" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!receive">{{this.bb.approveFireDate2}}</td>
    <td class="xl75" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="receive">
        <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="approveFireDate2"></j-date>
    </td>
    <td class="xl71" x:str="">结束</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl89" height="19" style="height:14.25pt;" x:str="">值长或班长签名：</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!receive">{{this.bb.ondutyPersonSign}}</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="receive">
        <a-input v-model="ondutyPersonSign"></a-input>
    </td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">集控接票负责人签名</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl89" x:str="">时间：</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!receive">{{this.bb.signDate1}}</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="receive">
        <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="signDate1"></j-date>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl90" height="19" colspan="6" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">动火区域（有易燃易爆气体、粉尘场所）测量结果：测量地点：</td>
    <td class="xl75" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl75" height="19" colspan="2" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">1.易燃易爆气体（粉尘）名称：</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl71" x:str="">使用仪器：</td>
    <td class="xl75" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">测量值：</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl71" x:str="">测量时间</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl71" x:str="">测量人</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">测量值：</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl71" x:str="">测量时间</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl71" x:str="">测量人</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">测量值：</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl71" x:str="">测量时间</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl71" x:str="">测量人</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl91" height="19" colspan="5" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">安全措施执行完毕。</td>
    <td class="xl92" rowspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">运行许可时间</td>
    <td class="xl80" colspan="4" rowspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!pendingtime">{{this.bb.runPermmitDate}}</td>
    <td class="xl80" colspan="4" rowspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="pendingtime">
        <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="runPermmitDate"></j-date>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl93" height="19" style="height:14.25pt;" x:str="">动火工作负责人</td>
    <td class="xl93" v-if="!pendingfzr">{{this.bb.workOndutyPerson1}}</td>
    <td class="xl93" v-if="pendingfzr">
        <a-input v-model="workOndutyPerson1"></a-input>
    </td>
    <td class="xl93" x:str="">运行许可人</td>
    <td class="xl76" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!pendingxkr">{{this.bb.workPermmitSign1}}</td>
    <td class="xl76" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="pendingxkr">
        <a-input v-model="workPermmitSign1"></a-input>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl77" height="19"  style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">消防监护人：</td>
    <td class="xl89" colspan="2" v-if="!fire">{{this.bb.fireProtectPerson1}}</td>
    <td class="xl89" colspan="2" v-if="fire">
        <a-input v-model="fireProtectPerson1"></a-input>
    </td>
    <td class="xl77" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">运行许可人</td>
    <td class="xl89"></td>
    <td class="xl77" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">动火执行人</td>
    <td class="xl77" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl75" height="19" colspan="2" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">动火风电场安全员或技术专工：</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!leader">{{this.bb.leaderSign2}}</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="leader">
        <a-input v-model="leaderSign2"></a-input>
    </td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">允许动火时间</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!leader">{{this.bb.firePermmitDate}}</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="leader">
        <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="firePermmitDate"></j-date>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">结束动火时间</td>
    <td class="xl75" x:str="">自</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!ingtime">{{this.bb.fireOverDate}}</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="ingtime">
        <a-input v-model="fireOverDate"></a-input>
    </td>
    <td class="xl71" x:str="">结束</td>
    <td class="xl75" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">动火执行人</td>
    <td class="xl71"></td>
    <td class="xl71" x:str="">消防监护人</td>
    <td class="xl71"></td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">动火工作负责人</td>
    <td class="xl71" v-if="!ingfzr">{{this.bb.workOndutyPerson3}}</td>
    <td class="xl71" v-if="ingfzr">
        <a-input v-model="workOndutyPerson3"></a-input>
    </td>
    <td class="xl71" x:str="">运行许可人</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!ingxkr">{{this.bb.workPermmitSign0 }}</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="ingxkr">
        <a-input v-model="workPermmitSign0"></a-input>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">备注：</td>
    <td class="xl75" colspan="9" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">工作票终结时间</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">集控值班负责人签名：</td>
    <td class="xl75" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl75" height="19" colspan="2" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作票闭环管理确认</td>
    <td class="xl71" x:str="">确认时间</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!end">{{this.bb.ticketClosedDate}}</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="end">
         <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="ticketClosedDate"></j-date>
    </td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="" >工作负责人签名：</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!end">{{this.bb.workOndutySign}}</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="end">
        <a-input v-model="workOndutySign"></a-input>
    </td>
   </tr>
  </tbody></table>
    </div>
</template>
<script>
import store from '@/store'
import{Time} from '@/utils/time'
import JDate from '@/components/jeecg/JDate.vue'
import { httpAction, getAction,postAction,putAction } from '@/api/manage'
export default {
      components: {
      JDate,
    },
    data(){
        return{
            draft:false,
            className:'',
            workOndutyPerson0:'',
            fireEquipPlace:'',
            fireExecutePerson1:'',
            operateBookId1:'',
            fireExecutePerson2:'',
            operateBookId2:'',
            workWay:'',
            safeActionCheck:'',
            safeActionRun:'',
            applyFireDate1:'',
            applyFireDate2:'',
            sign:false,
            ticketAsignPerson:store.getters.userInfo.realname,
            ticketAsignDate:Time(),
            receive:false,
            safeTechPerson:'',
            fireWindPerson:'', 
            approveFireDate1:'',     
            approveFireDate2:'',    
            ondutyPersonSign:store.getters.userInfo.realname,
            signDate1:Time(),
            pendingtime:false,
            pendingfzr:false,
            pendingxkr:false,
            workOndutyPerson1:store.getters.userInfo.realname,
            workPermmitSign1:store.getters.userInfo.realname,
            runPermmitDate:Time(),
            fire:false,
            fireProtectPerson1:store.getters.userInfo.realname,
            leader:false,
            leaderSign2:'',
            firePermmitDate:Time(),
            ingtime:false,
            ingxkr:false,
            ingfzr:false,
            workPermmitSign0:store.getters.userInfo.realname,
            workOndutyPerson3:store.getters.userInfo.realname,
            fireOverDate:Time(),
            end:false,
            workOndutySign:store.getters.userInfo.realname,
            ticketClosedDate:Time()
        }
    },
    methods:{
        refresh(){
            return this.bb.type
        },
        back(){
             var obj = {}
             if(this.draft == true){
                 obj = {
                     id:this.bb.id,
                     className:this.className,
                    workOndutyPerson0:this.workOndutyPerson0,
                    fireEquipPlace:this.fireEquipPlace,
                    fireExecutePerson1:this.fireExecutePerson1,
                    operateBookId1:this.operateBookId1,
                    fireExecutePerson2:this.fireExecutePerson2,
                    operateBookId2:this.operateBookId2,
                    workWay:this.workWay,
                    safeActionCheck:this.safeActionCheck,
                    safeActionRun:this.safeActionRun,
                    applyFireDate1:this.applyFireDate1,
                    applyFireDate2:this.applyFireDate2,
                 }
             }else if(this.sign == true){
                 obj = {
                     id:this.bb.id,
                     ticketAsignPerson:this.ticketAsignPerson,
                    ticketAsignDate:this.ticketAsignDate
                 }
             }else if(this.receive == true){
                 obj = {
                     id:this.bb.id,
                      safeTechPerson:this.safeTechPerson,
                    fireWindPerson:this.fireWindPerson, 
                    approveFireDate1:this.approveFireDate1,     
                    approveFireDate2:this.approveFireDate2,    
                    ondutyPersonSign:this.ondutyPersonSign,
                    signDate1:this.signDate1,
                 }
             }else if(this.pendingfzr == true){
                 if(this.pendingtime == true){
                     obj = {
                         id:this.bb.id,
                         workOndutyPerson1:this.workOndutyPerson1,
                        runPermmitDate:this.runPermmitDate,
                     }
                 }else{
                     obj = {
                         id:this.bb.id,
                         workOndutyPerson1:this.workOndutyPerson1,
                     }
                 }
             }else if(this.pendingxkr == true){
                 if(this.pendingtime == true){
                     obj = {
                         id:this.bb.id,
                         workPermmitSign1:this.workPermmitSign1,
                        runPermmitDate:this.runPermmitDate,
                     }
                 }else{
                     obj = {
                         id:this.bb.id,
                         workPermmitSign1:this.workPermmitSign1,
                     }
                 }
             }else if(this.fire == true){
                 obj={
                     id:this.bb.id,
                     fireProtectPerson1:this.fireProtectPerson1
                 }
             }else if(this.leader == true){
                 obj = {
                     id:this.bb.id,
                     leaderSign2:this.leaderSign2,
                     firePermmitDate:this.firePermmitDate,
                 }
             }else if(this.ingfzr == true){
                 if(this.ingtime == true){
                     obj = {
                         id:this.bb.id,
                         workOndutyPerson3:this.workOndutyPerson3,
                        fireOverDate:this.fireOverDate,
                     }
                 }else{
                     obj = {
                         id:this.bb.id,
                         workOndutyPerson3:this.workOndutyPerson3,
                     }
                 }
             }else if(this.ingxkr == true){
                 if(this.ingtime == true){
                     obj = {
                         id:this.bb.id,
                         workPermmitSign0 :this.workPermmitSign0 ,
                        fireOverDate:this.fireOverDate,
                     }
                 }else{
                     obj = {
                         id:this.bb.id,
                         workPermmitSign0 :this.workPermmitSign0 ,
                     }
                 }
             }else if(this.end = true){
                 obj = {
                         id:this.bb.id,
                         workOndutySign:this.workOndutySign ,
                         ticketClosedDate:this.ticketClosedDate
                     }
             }
            
            return obj
        }
    },
    props:['bb'], 
    mounted(){
        console.log('bb',this.bb)
           var params={
            userid:store.getters.userInfo.id
        }
             getAction('/sys/user/queryUserRole',params).then(res=>{
            console.log('dengji',res)
            if(res.result[0] == '1372791457577152513'){ //值班长
                    if(this.bb.ticketAsignPerson != null && this.bb.ondutyPersonSign == null){ //运行接收
                        this.receive = true
                        this.draft = false
                        this.sign = false
                    }
                }else if(res.result[0] == '1364736776864395266'){ //负责人
                    if(this.bb.ondutyPersonSign != null && this.bb.workOndutyPerson1 == null){
                        this.pendingfzr = true
                        this.pendingxkr = false
                    }
                    if(this.bb.leaderSign2 != null && this.bb.workOndutyPerson3 == null){
                        this.ingfzr = true
                        this.ingxkr = false
                    }
                    if(this.bb.workOndutyPerson3 != null && this.bb.workOndutySign == null){
                        this.end = true
                    }

                }else if(res.result[0] == '1364736908854947842') {//许可人
                    if(this.bb.ondutyPersonSign != null && this.bb.workPermmitSign1 == null){
                        this.pendingfzr = false
                        this.pendingxkr = true
                    }
                    if(this.bb.leaderSign2 != null && this.bb.workPermmitSign0  == null){
                        this.ingfzr = false
                        this.ingxkr = true
                    }
                }else if(res.result[0] == '1370195812021153793'){//消防监护人
                    if(this.bb.runPermmitDate != null && this.bb.fireProtectPerson1 == null){
                        this.fire = true
                    }
                }

                if((this.bb.workOndutyPerson1 != null && this.bb.workPermmitSign1 == null) || (this.bb.workOndutyPerson1 == null && this.bb.workPermmitSign1 != null)){
                    this.pendingtime = true
                }
                if((this.bb.workOndutyPerson3 != null && this.bb.workPermmitSign0 == null) || (this.bb.workOndutyPerson3 == null && this.bb.workPermmitSign0 != null)){
                    this.ingtime = true
                }
             })
        if(this.bb.applyFireDate2 == null){
            this.draft = true
        }
        if(this.bb.applyFireDate2 != null && this.bb.ticketAsignPerson == null){
            this.sign = true
        }
        if(this.bb.fireProtectPerson1 != null && this.bb.leaderSign2 == null){
            this.leader = true
        }
      
        
    }
}
</script>
<style scoped>
td{
    padding-top: 1px;
    padding-right: 1px;
    padding-left: 1px;
    vertical-align: middle;
    white-space: nowrap;
    color: windowtext;
    font-size: 12pt;
    font-weight: 400;
    font-style: normal;
    font-family: 宋体;
    text-decoration: none;
    border: 1px solid #000;
     }
.center{
    width:942px;
     background-color: #E5EDF0 !important;
     } 

</style>